package com.anlu.pattern.action.observer;

/**
 * @author Administrator
 */
public class ObserverClient {

    public static void main(String[] args) {
        //目标
        MangoAttention attentions = new MangoAttention();
        attentions.add(new CustomerObserver("deer"));
        attentions.add(new CustomerObserver("james"));
        attentions.add(new CustomerObserver("lison"));
        attentions.add(new CustomerObserver("mark"));

        attentions.perform();
    }
}
